package com.javasm.exercise;

/**
 * @classname:Computer
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/26 21:43
 * @version: 0.1
 * @since:1.8
 */
public class Computer {
//    cpu，网卡，显卡，声卡，内存 方法：上网
    private int cpu;
    private String music;
    private String memory;
    public Computer() {
    }
    public Computer(int cpu, String music, String memory) {
        this.cpu = cpu;
        this.music = music;
        this.memory = memory;
    }

    public int getCpu() {
        return cpu;
    }

    public void setCpu(int cpu) {
        this.cpu = cpu;
    }

    public String getMusic() {
        return music;
    }

    public void setMusic(String music) {
        this.music = music;
    }

    public String getMemory() {
        return memory;
    }

    public void setMemory(String memory) {
        this.memory = memory;
    }

    public static void onLine(){
        System.out.println("上网");
    }

}
